package dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import bean.Student;

public interface StudentMapper {
	public int insert(Student student);
	public int delete(Student student);
	public int update(Student student);
	public Student get(String no);
	public int insertAllByArr(Student[] studentArr);
	public int insertAllByList(List<Student> studentList);
	//不加@Param入参  xml那里取不到map的keys和values
	//public int insertAllByMap(Map<String, Student> studentMap);
	public List<Student> getStudentList(String name);
	public int insertAllByMap(@Param("studentMap") Map<String, Student> studentMap);
}
